package com.lxp.modules.gyy.controller;

import com.lxp.common.core.page.TableDataInfo;
import com.lxp.modules.gyy.domain.HrScore;
import com.lxp.modules.gyy.domain.vo.ScoreParam;
import com.lxp.modules.gyy.service.HrScoreService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/gyy/score")
@Api(tags = "工业云积分接口")
@Slf4j
public class HrScoreController {

    @Resource
    private HrScoreService hrHrScoreService;

    @ApiOperation("查询积分")
    @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = HrScore.class)))
    @GetMapping("/list")
    public TableDataInfo list(ScoreParam param, TableDataInfo info) {
        return hrHrScoreService.getScoreByEmpId(param, info);
    }

}
